package phone.qyg.com.qyg.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：lblbh on 2017/4/13 15:47
 * 邮箱：lanbuhan@163.com
 * 功能：场馆场地-->场地价格
 */
public class FieldPrice implements Parcelable {
    /**

     "book_time": "2018-06-04",(提交是用到)
     "end_time": "09:00", //结束时间
     "start_time": "08:00",//开始时间
     "status": 0,//0、可预订 1、不可预定
     "time_id": 1,//时间id
     "weekDate": "06月04日周一"

     "time_str": "08:00-09:00",
     "end_time": "09:00",
     "start_time": "08:00",
     "time_id": 1

     */

    public int time_id;
    public int status;//0-可预订，1-不可预订 2-用户暂时点击
    public String end_time;
    public String time_str;
    public String weekDate;
    public String book_time;
    public String start_time;

    //自定义字段 区分 时间/价格 时间-1 价格取默认值-0
    public int type;


    public String sub_time;//提交时间

    public FieldPrice(){}

    @SuppressWarnings("unchecked")
    public FieldPrice(Parcel in) {
        end_time = in.readString();
        weekDate = in.readString();
        start_time = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(end_time);
        dest.writeString(weekDate);
        dest.writeString(start_time);
    }


    public static final Creator<FieldPrice> CREATOR = new Creator<FieldPrice>() {
        @Override
        public FieldPrice[] newArray(int size) {
            return new FieldPrice[size];
        }

        @Override
        public FieldPrice createFromParcel(Parcel in) {
            return new FieldPrice(in);
        }
    };

}
